package com.ydl.entry.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("`goods_order`")
public class GoodsOrder implements Serializable {
    /**
     * 物流ID
     **/
    @TableId(type = IdType.INPUT)
    private String pdId;
    /**
     * 商品ID
     */
    private String goodsId;
    /**
     * 用户ID
     */
    private String userId;
    /**
     * 商品数量
     */
    private Integer goodsNum;
    /**
     * 收获地址
     */
    private String address;
    /**
     * 快递
     */
    private String parcel;
    /**
     * 订单状态(发货、付款、签收)
     */
    private String status;
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    private Integer deleted;

}